

{% extends "bootstrap/base.html" %}
{% block title %}
    销售订单
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">
        <div class="table-responsive">
            <table class="table">
                <caption>销售订单</caption>
                <thead>
                    <tr>
                        <th>订单名称</th>
                        <th>订单号</th>
                        <th>客户</th>
                        <th>销售人员</th>
                        <th>备注</th>
                        <th>销售时间</th>
                        <th>状态</th>
                    </tr>
                </thead>
                <tbody>
                {% for order in order %}
                    <tr>
                        <td>{{ order.salename }}</td>
                        <td>{{ order.salebh }}</td>
                        <td>{{ order.clients.name }}</td>

                        <td>{{ order.saler }}</td>
                           <td>{{ order.note }}</td>
                        <td>{{ order.saledate }}</td>
                        {% if order.commoditycks %}
                        <td>已发货<a href="{{ url_for('admin.wlxq',order_id=order.id) }}">详情</a></td>
                        {% else %}
                        <td><a href="{{ url_for('admin.sale_ck',order_id=order.id) }}">发货</a></td>
                        {% endif %}



                    </tr>
                {% endfor %}
                </tbody>
        </table>
        </div>
    </div>
</div>
</body>
{% endblock %}
